To clear the Message window, print a string which includes the form-feed character (code 12): 

  Print Chr$(12) 'This statement clears the Message window

By embedding the line-feed character (code 10) in a message, you can force a single message to be split onto two or more lines. The following Print statement produces a two-line message: 

  Print  "Map Layers:" +  Chr$(10) + "  World, Capitals"

The Print statement converts each Tab character (code 09) to a space (code 32). 

Example  

The following example displays the Message window, sets the window's size (three inches wide by one inch high), sets the window's font (Helvetica, bold, 10-point), and prints a message to the window. 

Include "MAPBASIC.DEF" 				  '  needed for color name 'BLUE'
Open Window Message  				  ' open Message window
Set Window Message Font ("Helv", 1, 10, BLUE) 	  ' Helvetica bold...
Position (0.25, 0.25)				  ' place in upper left 
Width 3.0  					  ' make window 3" wide  
Height 1.0  					  ' make window 1" high
Print "MapBasic Dispatcher now on line" 